package gdut.stream.quote;

public class CatTest {
    public static void main(String[] args) {
        Integer age = 10;
        String strAge = CatUtils.getCatAge(age, new Cat<Integer, String>() {
            @Override
            public String myCat(Integer integer) {
                return String.valueOf(integer);
            }
        });
        System.out.println(strAge);
        String strAge2 = CatUtils.getCatAge(age, integer -> String.valueOf(integer));
        System.out.println(strAge2);
        String strAge3 = CatUtils.getCatAge(age, String::valueOf);
        System.out.println(strAge2);

    }
}
